<!DOCTYPE html>
<html>
<#include "include/header.html"/>
  <body id="game"> 
    <div class="page">
      <div class="content">
        <img src="${ctx}/resource/images/banner.png" class="banner">
        <div class="wrap">
          <!-- 导航栏 -->
          <nav>
            <ul>
              <li><a href="${ctx}/home/homePage">返回首页</a></li>
              <li><a href="${ctx}/home/forwardExchang">拼手气</a></li>
            </ul>
          </nav>
          
          <!-- 入口 -->
          <div class="entries">
            <a href="${ctx}/home/forwardTurntable"></a>
            <a href="${ctx}/home/forwardPocket" ></a>
          </div>
          
        </div>
         <!-- 提交失败 -->
			<div class="dialog fail">
				<div class="d-body" id="fail_message">
					<p class="message">系统繁忙 请稍后再试</p>
				</div>
				<div class="d-footer">
					<img src="${ctx}/resource/images/index/dialog_btn_back.png"
						class="btn one back" alt="" onclick="dialogClose()">
					<!--返回按钮-->
				</div>
			</div>
      </div>
    </div>
    <div class="mask"></div>
  </body>
  <script type="text/javascript">
  function checkUserCurrency(type){
     var forward_url="${ctx}/home/forwardPocket";
		  if(type == "01"){
		  forward_url="${ctx}/home/forwardTurntable";
		  }
     $.post("${ctx}/home/checkUserCurrency",{},function(data){
       if(data.code==0){
         window.location.href=forward_url;
         
       }else{
               var msgHtm = "<p class='message'>" + data.msg + "</p>";
					$("#fail_message").html(msgHtm);
					dialog(".fail");
       }
     });
    }
  </script>
</html>